package com.xiaokan.pojo;

public class URLWrapper implements Comparable {

	private URL url;

	private double bm25Value = 0.0;
	
	private int[] freqs;

	@Override
	public int compareTo(Object o) {
		URLWrapper w = (URLWrapper) o;
		double wb = w.getBm25Value();
		if (this.bm25Value > wb)
			return 1;
		else if (this.bm25Value == wb)
			return 0;
		else
			return -1;
	}

	public URL getUrl() {
		return url;
	}

	public void setUrl(URL url) {
		this.url = url;
	}

	public double getBm25Value() {
		return bm25Value;
	}

	public void setBm25Value(double bm25Value) {
		this.bm25Value = bm25Value;
	}

	public int[] getFreqs() {
		return freqs;
	}

	public void setFreqs(int[] freqs) {
		this.freqs = freqs;
	}


}
